import { http } from '../http.config'

export const examApi =  {
    //考核列表
    getPaperList: (params)=> http.get('/education/student/paper/list',params),
    //考核--章节列表
    getPaperRecord: (id)=> http.get(`/education/student/paper_record/${id}`),
    //课程列表
    getCourseList: (params)=> http.get(`/education/student/course`, params),
    //课程详情
    getCourseDetail: (id)=> http.get(`/education/student/course/${id}`),
    //课程--点赞、点踩
    setCourseLike: (data)=> http.post(`/education/student/course/like`, data),
    //消息列表
    getMessage: (params)=> http.get('/v1/message', params),
    //消息批量已读
    setPatchRead: (data)=> http.post('/v1/message/patch_read', data),
    //版本信息
    getLastVersion: (params)=> http.get('/education/admin/last_version', params),
    //试题--章节试题
    getQuestionList: (paper_id, chapter_id)=> http.get(`/education/school/paper/${paper_id}/chapter/${chapter_id}`),
    //开始考核
    setPaperStart: (data)=> http.post('/education/student/paper/start', data),
    //提交考核
    setPaperSubmit: (data)=> http.post('/education/student/paper/submit_vr', data),
    //重新考核
    setPaperReset: (pk)=> http.post(`/education/student/test/reset/${pk}`),
    //教师自测、协会审核--考核列表status=1&name=十分&company=3
    getTestPaperList: (params)=> http.get(`/education/student/paper/test/list`, params),
    //单位下拉
    getCompanyOptions: (params)=> http.get('/education/admin/company/options', params),
    //学习记录
    setCourseStudy: (data)=> http.post('/education/student/course_study', data),
}